﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SSAction : ScriptableObject
{
    public bool enable = true;      // 是否进行中
    public bool destroy = false;    // 是否删除
    // 需要进行运动的游戏对象
    public GameObject gameObject { get; set; }
    public Transform transform { get; set; }
    // 动作执行完后要通知的对象
    public ISSActionCallback callback { get; set; }

    protected SSAction()
    {

    }
    // 申明虚方法，通过重写实现多态，由继承者来明确行为
    public virtual void Start()
    {
        throw new System.NotImplementedException();
    }

    public virtual void Update()
    {
        throw new System.NotImplementedException();
    }
}
